package com.ccys.db.mapper;

import com.ccys.db.dto.userManagement.TblLabResultDTO;
import com.ccys.db.entity.TblLabResult;
import com.ccys.db.vo.doctor.consultStage.GetHeartRateHistoryVo;
import com.ccys.db.vo.doctor.consultStage.GetLisLaboratoryResultVo;
import com.ccys.db.vo.userManagement.TblLabResultWebVO;
import com.ccys.db.vo.userManagement.TblLabResultWebVOExportVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
* Created by Mybatis Generator on 2023/12/15
*/
public interface TblLabResultMapper extends Mapper<TblLabResult>, MySqlMapper<TblLabResult> {
       /**
        * @description 用户管理模块下-查看病人的-Laboratory
        * @date     2023/12/23
        * @author   cloud fly
        */
    List<TblLabResultWebVO> listObjectsCms(TblLabResultDTO dto);

       /**
        * @description 导出数据列表
        * @date     2024/1/11
        * @author   cloud fly
        */
    List<TblLabResultWebVOExportVO> exportListObjectsCms(TblLabResultDTO dto);

    TblLabResult selectLastOneByMember(@Param("memberId")String memberId,@Param("bp")Integer bp);

    String selectCreateOnByHeartRate(@Param("memberId")String memberId);


    List<GetHeartRateHistoryVo.HeartRateVo> getHeartRateHistory(String memberId);



    List<GetLisLaboratoryResultVo.LaboratoryVo> getLisLaboratoryResult(String memberId);
}
